/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "进货退货表", TableName = "returnordermodel")]
    public partial class returnordermodel : BaseEntity
    {
        /// <summary>
        /// 退货id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Key]
        [Display(Name = "退货id")]
        [Column(TypeName = "bigint")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public long Id { get; set; }

        /// <summary>
        /// 退货单号
        /// </summary>
        [Display(Name = "退货单号")]
        [Column(TypeName = "longtext")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string ReturnOrderCode { get; set; }

        /// <summary>
        /// 退货日期
        /// </summary>
        [Display(Name = "退货日期")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public DateTime ReturnOrderDate { get; set; }

        /// <summary>
        /// 进货单单号
        /// </summary>
        [Display(Name = "进货单单号")]
        [MaxLength(30)]
        [Column(TypeName = "varchar(30)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string PurchaseOrderCode { get; set; }

        /// <summary>
        /// 供应商外键Id
        /// </summary>
        [Display(Name = "供应商外键Id")]
        [Column(TypeName = "bigint")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public long SupplierId { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        [Display(Name = "联系人")]
        [MaxLength(20)]
        [Column(TypeName = "varchar(20)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string Contact { get; set; }

        /// <summary>
        /// 联系方式
        /// </summary>
        [Display(Name = "联系方式")]
        [MaxLength(20)]
        [Column(TypeName = "varchar(20)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string ContactPhone { get; set; }

        /// <summary>
        /// 进货部门外键Id
        /// </summary>
        [Display(Name = "进货部门外键Id")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string DeptId { get; set; }

        /// <summary>
        /// 进货人(客户表)外键Id
        /// </summary>
        [Display(Name = "进货人(客户表)外键Id")]
        [Column(TypeName = "bigint")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public long CustomerId { get; set; }

        /// <summary>
        /// 审批状态(1.草稿、2.待审批....)
        /// </summary>
        [Display(Name = "审批状态(1.草稿、2.待审批....)")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? Status { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        [Display(Name = "审核人")]
        [MaxLength(20)]
        [Column(TypeName = "varchar(20)")]
        [Editable(true)]
        public string AuditUser { get; set; }

        /// <summary>
        /// 审核时间
        /// </summary>
        [Display(Name = "审核时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? AuditTime { get; set; }

        /// <summary>
        /// 退货原因
        /// </summary>
        [Display(Name = "退货原因")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string ReturnDesc { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string Remarks { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [Display(Name = "创建人")]
        [MaxLength(20)]
        [Column(TypeName = "varchar(20)")]
        [Editable(true)]
        public string Creator { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [Display(Name = "修改人")]
        [MaxLength(20)]
        [Column(TypeName = "varchar(20)")]
        [Editable(true)]
        public string Modifier { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [Display(Name = "是否删除")]
        [Column(TypeName = "tinyint")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public sbyte IsDelete { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        [Display(Name = "创建人ID")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? CreateID { get; set; }

        /// <summary>
        /// 修改人ID
        /// </summary>
        [Display(Name = "修改人ID")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? ModifyID { get; set; }
        /// <summary>
        /// 出入库类型id
        /// </summary>
        [Display(Name = "出入库类型id")]
        [Column(TypeName = "bigint")]
        [Editable(true)]
        public long? InOutTypeId { get; set; }

        /// <summary>
        /// 出库状态
        /// </summary>
        [Display(Name = "出库状态")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? OutStatus { get; set; }
    }
}
